home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
272_01
/
getdata.doc
< prev
next >
Wrap
Text File
|
1986-12-28
|
969b
|
39 lines
NAME
get_data_adr -- get a data item address
SYNOPSIS
void get_data_adr(item, offset, segment);
int *item; name of data item
int *offset; destination of offset value
int *segment; destination of segment value
DESCRIPTION
This function is used to get the absolute segment and offset
values for the address of a data item within a program.
It is useful for installing interrupt handlers and
interfacing to assembly language modules.
EXAMPLE
int somenumber;
main() {
int segment, offset;
get_data_adr(&somenumber, &offset, &segment);
printf("Address is %x:%x\n", segment, offset);
}
This function is found in SMDLx.LIB for the Datalight Compiler